<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/9/9
 * Time: 18:19
 */
require('env.php');
require('init.inc.php');
//$count = Product::count();
$pid = $_GET['product_id'];

$count = Products::count($pid);
exit(json_encode(array("msg" => "true", "count" => $count['products_sale_other'])));
